package io.gitee.devaper.starlight.common.config

import io.gitee.devaper.starlight.*
import org.apache.ibatis.annotations.Mapper
import org.mybatis.spring.annotation.MapperScan
import org.springframework.context.annotation.Configuration

/**
 * MyBatis Plus配置类
 */
// MapperScan从根包开始扫描, 必须指定annotationClass, 否则会把所有接口当作Mapper来初始化
@MapperScan(basePackages = [BASE_PACKAGE], annotationClass = Mapper::class)
@Configuration(proxyBeanMethods = false)
open class MyBatisPlusConfiguration